/*
 * 四川生学教育科技有限公司
 * Copyright (c) 2015-2025 Founder Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Founder. You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Founder.
 *
 */
package com.example.demo.api;

import com.example.demo.service.AComponentService;
import com.example.demo.service.AService;
import com.example.demo.service.BComponentService;
import com.example.demo.service.CComponentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JiuHu.XIONG (xjh@sxw.cn)
 * @description TODO
 * @date 2018/9/25 15:08
 * @since 1.0.0
 */
@RestController
public class UserController {

    @Autowired
    private AService aService;
    @Autowired
    private AComponentService aComponentService;
    @Autowired
    private BComponentService bComponentService;
    @Autowired
    private CComponentService cComponentService;

    @GetMapping("/hello")
    public String hello() throws Exception {
        aService.methodA();
        return "hello";
    }

    @GetMapping("/test/component")
    public String component() throws Exception {
        aComponentService.testComponentA();
        bComponentService.testComponentB();
        cComponentService.testComponentC();
        return "hello";
    }

}
